#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/2/1 14:00
# @Author  : xinyingjie
# @File    : config.py.py
# @Description :


KAFKA_HOST = "10.100.12.58:9092"
PRE_DATA_TOPIC = "predata"
ALL_DATA_TOPIC = "alldata"
AI_DATA_TOPIC = "aidata"
SUMO_TOPIC = "sumo-data"
# 全局中心点
GLOBAL_POLYGON_CENTER = [(434, 497), (584, 634),
                         (969, 401), (616, 279)]

MAX_SPEED = int(100 / 3.6)
MIN_SPEED = int(60 / 3.6)
CAR_DEFAULT_SPEED = 24
TRUCK_DEFAULT_SPEED = 20
SPECIAL_DEFAULT_SPEED = 18
# 经度逐渐减少
# 感知 第一种出现位置直接发车
# 第二个门架位置进行删车操作

erId_dict = {
    "S001933030055210010": {"lon": 121.159129, "lat": 28.23522},
    "S001933030055210011": {"lon": 121.154497, "lat": 28.238024},  # 删除  all-data没有上报这条数据，就删除
    "S001933030055210012": {"lon": 121.15025, "lat": 28.239659},
    "S001933030055210013": {"lon": 121.144683, "lat": 28.241137},
    "S001933030055210014": {"lon": 121.139778, "lat": 28.24239},
    "S001933030055210015": {"lon": 121.135468, "lat": 28.243534},
    "S001933030055210016": {"lon": 121.128253, "lat": 28.244775},
    "S001933030055210017": {"lon": 121.124437, "lat": 28.244834}}

type_change = {1: 1, 2: 12, 3: 3}
# route_list = ['-6', '-3', '-14', '-0', '-7', '-2', '-11', '-13', '-10', '-5', '-9', '-8', '-1']
route_list = {
    "0": [
        ['80', '74', '9', '85', '84','-51', '-16', '-10', '-91', '-92','-105', '-106'],
        ['80', '74', '9', '85', '88', '-44', '-6', '-65', '-92','-105', '-106'],
        ['80', '74', '9', '13','12', '-60', '-34', '-41', '-14', '-106'],
        ['80', '74', '9', '13', '-26', '-45', '-41', '-14', '-106'],
    ],
    "1": [
        ['25', '55', '109', '37', '36','-108', '-27', '-11', '-53', '-66', '-99', '-83'],
        ['25', '55', '109', '37', '-102', '-75', '-11', '-53', '-66', '-99', '-83'],
        ['25', '55', '109', '81', '72', '71', '-21', '-33', '-2', '-3', '-66', '-99', '-83'],
        ['25', '55', '109', '81', '72','24', '-93', '-94', '-3', '-66', '-99', '-83'],
    ],
    "2": [
        ['18', '17', '70', '69', '-39', '-57', '-63', '-64', '-96', '-97', '-48', '-47'],
        ['18', '17', '70', '59', '-38', '-101', '-76', '-64', '-96', '-97', '-48', '-47'],
        ['18', '79', '104', '-90', '-46', '-42', '-43', '-97', '-48', '-47'],
        ['18', '79', '104', '68', '73', '-28', '-61', '-0', '-43',  '-97', '-48', '-47'],
        ['18', '29', '77', '-22', '-103', '-19', '-30', '-31', '-58',  '-97', '-48', '-47'],
        ['18', '29','77', '-89', '-35', '-40', '-32', '-31', '-58',  '-97', '-48', '-47'],
        ['18', '29','77','-100', '-82', '-54', '-78', '-31', '-58', '-97', '-48', '-47'],
    ],
}
